<!DOCTYPE html>
<html>
  <head>
    <meta charset='utf-8'>
    <meta http-equiv="X-UA-Compatible" content="chrome=1">

    <link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />

    <title>Simple YARN Application by hortonworks</title>
  </head>

  <body>

    <header>
      <div class="container">
        <h1>Simple YARN Application</h1>
        <h2>Simple YARN application</h2>

        <section id="downloads">
          <a href="https://github.com/hortonworks/simple-yarn-app/zipball/master" class="btn">Download as .zip</a>
          <a href="https://github.com/hortonworks/simple-yarn-app/tarball/master" class="btn">Download as .tar.gz</a>
          <a href="https://github.com/hortonworks/simple-yarn-app" class="btn btn-github"><span class="icon"></span>View on GitHub</a>
        </section>
      </div>
    </header>

    <div class="container">
      <section id="main_content">
        <h1>
<a name="simple-yarn-app" class="anchor" href="#simple-yarn-app"><span class="octicon octicon-link"></span></a>simple-yarn-app</h1>

<p>Simple YARN application to run n copies of a unix command - deliberately kept simple (with minimal error handling etc.)</p>

<h1>
<a name="usage" class="anchor" href="#usage"><span class="octicon octicon-link"></span></a>Usage:</h1>

<h3>
<a name="unmanaged-mode" class="anchor" href="#unmanaged-mode"><span class="octicon octicon-link"></span></a>Unmanaged mode</h3>

<p>$ bin/hadoop jar $HADOOP_YARN_HOME/share/hadoop/yarn/hadoop-yarn-applications-unmanaged-am-launcher-2.1.1-SNAPSHOT.jar Client -classpath simple-yarn-app-1.0-SNAPSHOT.jar -cmd "java com.hortonworks.simpleyarnapp.ApplicationMaster /bin/date 2"</p>

<h3>
<a name="managed-mode" class="anchor" href="#managed-mode"><span class="octicon octicon-link"></span></a>Managed mode</h3>

<p>$ bin/hadoop fs -copyFromLocal simple-yarn-app-1.0-SNAPSHOT.jar /apps/simple/simple-yarn-app-1.0-SNAPSHOT.jar</p>

<p>$ bin/hadoop jar simple-yarn-app-1.0-SNAPSHOT.jar com.hortonworks.simpleyarnapp.Client /bin/date 2 /apps/simple/simple-yarn-app-1.0-SNAPSHOT.jar</p>
      </section>
    </div>

    
  </body>
</html>